package org.goldfish.client_demo.client_demo;

import org.goldfish.client_demo.client_demo.service.Query;
import org.goldfish.client_demo.client_demo.service.RegService;
import org.goldfish.distributed_framework.GoldfishFramework;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class ClientDemoApplication {

    public static void main(String[] args) {
        GoldfishFramework.initClient();
        SpringApplication.run(ClientDemoApplication.class, args);
    }

    @Bean
    public Query query() {
        return new Query();
    }
    @Bean
    public RegService regService(){
        return new RegService();
    }
}
